1 00:00:00,330 --> 00:00:04,620 So we need an NPC that's going to work for our game, for our zombie game. 2 00:00:04,620 --> 00:00:08,880 He's got to be able to defend himself because they're zombies and he's got to be a little bit of a bad 3 00:00:08,880 --> 00:00:10,620 guy to make the game interesting. 4 00:00:10,620 --> 00:00:12,900 So I made Chuck Norris here. 5 00:00:13,110 --> 00:00:17,760 Chuck Norris If you get too close, he's going to run up boom and he's going to kick you and you're 6 00:00:17,760 --> 00:00:18,840 going to fly away. 7 00:00:18,840 --> 00:00:19,950 And it does damage. 8 00:00:19,950 --> 00:00:22,090 So every kick does 30 points of damage. 9 00:00:22,110 --> 00:00:23,580 I thought that would be pretty cool. 10 00:00:23,580 --> 00:00:25,260 Let's go ahead and get started. 11 00:00:26,730 --> 00:00:26,880 All right. 12 00:00:26,880 --> 00:00:32,500 So for my Chuck Norris, I'm going to use Cletus because he already has a follow script on them. 13 00:00:32,520 --> 00:00:38,730 I'll put him in the resources so you can download them to your computer and import them into the game 14 00:00:38,730 --> 00:00:41,100 if you don't have them or if you didn't get at work. 15 00:00:41,100 --> 00:00:44,880 And I'm going to make sure collisions are off and then I'm going to duplicate Cletus. 16 00:00:44,880 --> 00:00:47,700 I'm going to do Control D and now we have to. 17 00:00:47,700 --> 00:00:50,700 Cletus Let's go ahead and drag him out of the way. 18 00:00:50,910 --> 00:00:55,260 Remember, he has a follow script, so we want them far enough ways that this guy isn't messing us up 19 00:00:55,260 --> 00:00:56,550 when we're testing our game. 20 00:00:57,240 --> 00:01:03,960 All right, let's call this Cletus Chuck Norris, because I already have a chuck from my demo. 21 00:01:03,960 --> 00:01:05,910 So this is Chuck Norris. 22 00:01:06,960 --> 00:01:08,630 Oh, I got a little slash there. 23 00:01:08,640 --> 00:01:09,330 Hold on. 24 00:01:09,390 --> 00:01:10,440 Let me get rid of that. 25 00:01:11,820 --> 00:01:16,800 All right, So Chuck Norris is pretty cool and he needs to wear a black shirt. 26 00:01:16,800 --> 00:01:18,570 So I'm going to open up Chuck Norris. 27 00:01:18,810 --> 00:01:23,100 Body color's at torso color. 28 00:01:24,460 --> 00:01:25,210 Maybe like. 29 00:01:25,210 --> 00:01:26,210 Like black. 30 00:01:26,230 --> 00:01:27,010 There you go. 31 00:01:27,550 --> 00:01:29,780 And we'll put glasses in a hat on them later. 32 00:01:29,800 --> 00:01:31,710 Let's get the animation going. 33 00:01:31,720 --> 00:01:40,030 So I'm going to center in on Chuck here, and then we're going to go to Avatar animation editor. 34 00:01:40,300 --> 00:01:42,820 We'll click on Chuck. 35 00:01:42,820 --> 00:01:44,140 Chuck Norris. 36 00:01:44,140 --> 00:01:46,870 And let's call this animation kick. 37 00:01:49,600 --> 00:01:50,270 Nice. 38 00:01:50,290 --> 00:01:53,560 Now the kick animation has to be action. 39 00:01:53,560 --> 00:01:59,060 So if we go, these three dots go down the set animation priority. 40 00:01:59,080 --> 00:02:00,520 I know you can't see these bottom ones. 41 00:02:00,520 --> 00:02:01,210 That's fine. 42 00:02:01,240 --> 00:02:02,860 Action is sufficient. 43 00:02:04,210 --> 00:02:05,080 There we go. 44 00:02:05,080 --> 00:02:10,270 And we'll save that animation and it should be inside Chuck Norris. 45 00:02:10,300 --> 00:02:13,590 So there's Chuck Norris and saves. 46 00:02:13,600 --> 00:02:14,800 There's our kick. 47 00:02:14,830 --> 00:02:15,040 All right. 48 00:02:15,040 --> 00:02:19,280 Let's get a little bit of better angle on Chuck here for our animation. 49 00:02:19,300 --> 00:02:20,410 I think that'll work. 50 00:02:20,440 --> 00:02:23,350 Click here to continue using the animation editor. 51 00:02:23,890 --> 00:02:25,080 Nice. 52 00:02:25,090 --> 00:02:28,540 And we have our scrubber bar at the Zero Frame. 53 00:02:28,540 --> 00:02:31,520 This is in zero in frame seconds. 54 00:02:31,540 --> 00:02:32,710 That's good. 55 00:02:32,920 --> 00:02:36,850 Let's click on his upper right leg. 56 00:02:37,000 --> 00:02:39,810 And I'm just going to push on it a little bit. 57 00:02:39,820 --> 00:02:47,040 I have this set to 15 degree increments on the rotate, so I have rotate selected 15 degrees. 58 00:02:47,050 --> 00:02:49,270 If I push on it a little bit, it's not going to move. 59 00:02:49,270 --> 00:02:50,220 Oh, it did move. 60 00:02:50,230 --> 00:02:50,740 That's all right. 61 00:02:50,750 --> 00:02:53,830 If I move it back, I'm still going to get the key frame. 62 00:02:54,250 --> 00:02:54,640 All right. 63 00:02:54,640 --> 00:02:58,420 Now I'm going to go out to maybe the third frame. 64 00:02:59,180 --> 00:03:04,310 Move that leg up into the kick position, the upper right leg. 65 00:03:04,340 --> 00:03:05,480 That'll work. 66 00:03:06,170 --> 00:03:08,210 And grab the foot, maybe. 67 00:03:08,210 --> 00:03:10,550 Point the point the foot a little bit. 68 00:03:10,970 --> 00:03:12,080 Nice. 69 00:03:12,410 --> 00:03:14,840 And let's get that right. 70 00:03:14,840 --> 00:03:16,430 Lower arm. 71 00:03:18,480 --> 00:03:20,250 Just bring it up for some defense. 72 00:03:21,810 --> 00:03:24,730 Maybe how that rotated in a little bit. 73 00:03:24,760 --> 00:03:25,980 Oh, that was his hand. 74 00:03:28,970 --> 00:03:29,910 Is that his hand? 75 00:03:29,920 --> 00:03:30,460 That's his. 76 00:03:30,460 --> 00:03:31,570 That's what I want. 77 00:03:33,140 --> 00:03:34,570 Had to go up. 78 00:03:34,580 --> 00:03:35,900 Harry, go. 79 00:03:38,700 --> 00:03:41,550 And we'll get the other arm lower, arm lower. 80 00:03:41,550 --> 00:03:42,480 Arm's fine. 81 00:03:46,360 --> 00:03:49,510 And maybe just make it come in a little bit. 82 00:03:50,530 --> 00:03:51,520 Nice. 83 00:03:51,550 --> 00:03:52,390 All right. 84 00:03:52,390 --> 00:03:53,560 What else do we want? 85 00:03:53,590 --> 00:03:56,800 Oh, how about let's lift them up a little bit. 86 00:03:56,800 --> 00:03:58,750 So I hit the torso. 87 00:03:59,890 --> 00:04:01,510 Go to move. 88 00:04:03,620 --> 00:04:04,790 Pick them up a bit. 89 00:04:06,160 --> 00:04:06,670 Nice. 90 00:04:06,670 --> 00:04:10,060 Now, trying to get this lower leg is really hard. 91 00:04:10,060 --> 00:04:12,310 So this is the left lower leg. 92 00:04:12,310 --> 00:04:15,850 If you have trouble getting something, go to the plus. 93 00:04:15,850 --> 00:04:18,310 Go to that left lower leg. 94 00:04:18,310 --> 00:04:19,960 Right, left, lower leg. 95 00:04:20,650 --> 00:04:21,790 Here it is. 96 00:04:22,710 --> 00:04:23,610 As arm. 97 00:04:23,610 --> 00:04:24,480 Sorry. 98 00:04:24,480 --> 00:04:24,840 Left. 99 00:04:24,840 --> 00:04:25,530 Lower leg. 100 00:04:25,530 --> 00:04:26,460 There it is. 101 00:04:28,090 --> 00:04:30,280 And that's those are the values. 102 00:04:30,490 --> 00:04:31,480 You don't need to open it up. 103 00:04:31,480 --> 00:04:32,650 You just need to select it. 104 00:04:32,650 --> 00:04:37,570 And then I'll go to rotate because once I selected it here, it updates here. 105 00:04:37,720 --> 00:04:42,040 I'll just do my rotate on that, give it a little mario type action. 106 00:04:42,310 --> 00:04:43,590 I think that'll work. 107 00:04:43,600 --> 00:04:45,280 Let's see what it's like when I play it. 108 00:04:46,640 --> 00:04:47,600 Kind of quick. 109 00:04:48,080 --> 00:04:48,980 That's all right. 110 00:04:49,370 --> 00:04:50,930 You want to hold it for a second? 111 00:04:50,930 --> 00:04:51,770 Let's do that. 112 00:04:53,630 --> 00:04:55,370 Well, a frame maybe. 113 00:04:55,370 --> 00:04:57,230 Copy selected. 114 00:04:59,290 --> 00:05:02,500 And then we'll do paste keyframes. 115 00:05:02,830 --> 00:05:03,780 Boom. 116 00:05:03,790 --> 00:05:05,080 Yeah, that'll be good. 117 00:05:05,110 --> 00:05:06,220 All right, let's save it. 118 00:05:06,250 --> 00:05:07,690 Hit the three dots. 119 00:05:07,780 --> 00:05:09,250 Save. 120 00:05:10,160 --> 00:05:15,910 Then we'll hit the three dots again, make sure that the animation priority is action or it won't work, 121 00:05:15,920 --> 00:05:18,040 it won't overtake the movement. 122 00:05:18,050 --> 00:05:21,800 And then we're going to go to publish to roadblocks. 123 00:05:23,610 --> 00:05:25,620 And I'm going to keep it as kick. 124 00:05:25,950 --> 00:05:27,420 I'll hit submit. 125 00:05:28,440 --> 00:05:32,550 And we're going to get this ID, We're going to get that ID right there. 126 00:05:32,550 --> 00:05:34,390 Just hit those two boxes. 127 00:05:34,410 --> 00:05:35,200 Boom. 128 00:05:35,220 --> 00:05:35,790 Got it. 129 00:05:36,600 --> 00:05:38,160 Close. 130 00:05:38,190 --> 00:05:38,940 Nice. 131 00:05:38,970 --> 00:05:42,370 Now on the move, NPC. 132 00:05:42,380 --> 00:05:42,480 See? 133 00:05:43,440 --> 00:05:47,430 Let's go ahead and hit the plus I animation. 134 00:05:47,850 --> 00:05:50,580 I'm going to call this kick in in. 135 00:05:53,780 --> 00:05:54,830 There you go. 136 00:05:55,760 --> 00:06:01,430 And then under the animation ID on the kick and m a right click. 137 00:06:02,440 --> 00:06:03,250 Paste. 138 00:06:03,250 --> 00:06:05,560 There's my ID when I hit the enter. 139 00:06:05,860 --> 00:06:07,210 We're going to get the roadblocks. 140 00:06:07,210 --> 00:06:08,590 Asset ID prefix. 141 00:06:08,590 --> 00:06:09,490 Prepend.